$ vncserver-kill: 1
$ Vncserver: 1
$ Vncserver-kill: 1
Note: ": 1" indicates the display number. You must write the same display number to log on.
Modify ~ /. Vnc/xstartup file. We recommend that you copy the Xsession configuration file in the system:
$ Cp/etc/X11/Xsession ~ /. Vnc/xstartup
$ Cp/etc/X11/Xsession ~ /. Vnc/xstartup
Start vnc server again:
$ Vncserver-geometry1280 x 800: 1
$ Vncserver-geometry1280 x 800: 1
Client:
Install the VNC client program:
$ Sudo apt-get install
DebianLinux Remote Control-Linux Release Technology-Debian information. The following is a detailed description. 1. ssh:
On the server side, if you want to install ssh in the sarge environment, you need to install openssh-server in the etch environment,
Client. ssh must be installed in sarge; openssh-client must be installed in etch.
In debian, use the following command to access: ssh
Access. Putty is available in windows.
2. rlogin:
Rlogin
3. Access the desktop:
V
: Listing 5. attaching to a domain
[emailprotected]:~/libvtest$ xvnc4viewer 127.0.0.1 0
Back to toplibvirt and Python
The previous example was strated the control of domains using the command-line utility virsh. let's now look an example of domain control using python. python was the libvirt-supported scripting language and provides a clean, object-oriented interface to the libvirt API.
In this example, I need e some of the same operations that I demo
Service Command line restart vncserver, use the following command (the first command to disable display: 1, the second command to enable a display) [plain] lisp @ lisp-ubuntu13 :~ $ Vncserver-kill: 1 lisp @ lisp-ubuntu13 :~ $ Vncserver note: If the local system is ubuntu, install vnc viewer with the following command [plain] lisp @ lisp-ubuntu13 :~ $ Sudo apt-get install vnc4-common xvnc4viewer connect to the server with vcn viewer, use the following
-geometry 1280x800:1
Client:
1, install VNC client program:
The code is as follows:
$ sudo apt-get install Vnc4-common xvnc4viewer
2, then you are logged in via Terminal Server client: Applications-> Internet-> Terminal Server client; Computer is: Server ip:display#, for example: 192.168.10.36:1;protocol selection: VNC.
or the command line:
The code is as follows:
$ vncviewer 192.168.10.36:1
Second, set open
After installation, in the/usr/sh
original class ATT team. And there have been many similar versions of UltraVNC and TightVNC. Main functions:1. Using the TCP/IP protocol for Remote control services2. Support Simple answer protocol. (Enterprise and Personal editions include RSA server-side authentication encryption, 128-bit AES session encryption mode, such as 2048-bit)3. Support SSH or VPN connection channel4. Compatible with VNC 4 free version and VNC 3Six.VinagreVinagre is a VNC client under Gnome Vinagre allows users to vie
1280x800:1
Client:1. Install the VNC client program:Shell Code
$ sudo apt-get install Vnc4-common xvnc4viewer
2. Then you log in via Terminal server Client: Applications, Internet, Terminal server client;computer: Server Ip:display#, for example: 192.168.10.36:1;protocol choice: VNC. or the command line:Shell Code
$ vncviewer 192.168. 10.36:1
Copyright NOTICE: This article for Bo Master original article, without Bo M
-7549:1 is taken because of/tmp/. X11-unix/x1Remove This file if there is no X server user-ms-7549:1Xauth:creating new Authority file/home/user/. XauthorityNew ' user-ms-7549:2 (user) ' Desktop is User-ms-7549:2Creating default startup Script/home/user/.vnc/xstartupStarting applications specified In/home/user/.vnc/xstartupLog file Is/home/user/.vnc/user-ms-7549:2.log2. Remote Desktop useUsing CentOS with Vncviewer (installed in the VNC package)$ vncviewerAfter Ubuntu Vnc4server is started, the d
://img.baidu.com/hi/jx2/j_0002.gif "alt=" J_0002.gif "/>Ps:By the way, the installation of Vnc4server and Xvnc4viewer tutorial is placed below:Vncserver:sudo apt-get install Vnc4serverVnc4serverVnc4server-kill:1# #修改配置文件[Email protected]:~/.vnc$ cat Xstartup#!/bin/sh# Uncomment the following-lines for normal desktop:Unset Session_managerUnset dbus_session_bus_address#exec/ETC/X11/XINIT/XINITRC[-x/etc/vnc/xstartup] Exec/etc/vnc/xstartup[-R $HOME/. Xre
can be achieved through VNC. To create a window that represents a graphic desktop in a specific domain, you can use VNC:
Listing 5. connecting to a domain
Mtj @ mtj-desktop :~ /Libvtest $Xvnc4viewer 127.0.0.1 0
Back to Top
Libvirt and Python
The previous example shows how to use the command line tool virsh to co
Ubuntu VNC configuration and Ubuntu VNC ConfigurationBy configuring the SERVER as a vnc server, other hosts can log on to the SERVER graphically.It is easy to configure the vnc server in ubuntu as follows:Server:1. First install the VNC service program:Shell code
$ Sudo apt-get install the vnc4-common vnc4server
2. Set the vnc logon password for the current user:
Shell code
$ Vncpasswd
3. Modify the default vnc settings so that gnome can be used as X's desktop at startup (if not set, vnc
Installation Service: sudo apt-Get install vnc4server
Install the client: sudo apt-Get install xvnc4viewer
Start the service vncserver. The first time you start the service, you will be prompted to enter a password.
Start the client: vncviewer. The IP address can be directly connected.
Install TightVNC (another remote desktop based on VNC ):
Sudo apt-Get install xtightvncviewer
Sudo apt-Get install tightvncserver
Start the client: xti
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.